package com.glodon.jcloud.increment.shorturl.param;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.util.Date;

/**
 * <p>
 * Create Date: 2022/12/8
 *
 * @version: V0.0.1-SNAPSHOT
 * @author: Terry.Li
 * @mail: lib-o@glodon.com
 */
@Data
public class ShortUrlEditParam {

    @ApiModelProperty(value = "id", position = 1)
    @NotBlank(message = "id不能为空")
    private String id;

    @ApiModelProperty(value = "短链后缀，例如 3durl.cn/1a2b3d，后缀为1a2b3d", position = 2)
    private String chain;

    @ApiModelProperty(value = "短链标题，不填则默认为\\'未命名\\'", position = 3)
    private String chainTitle = "未命名";

    @ApiModelProperty(value = "跳转链接，必须以 http:// 或 https:// 开头的链接", position = 4)
    private String targetUrl;

    @ApiModelProperty(value = "分组id，获取短链分组接口中获取。不填则默认使用账号的首个分组。", position = 5)
    private String groupId;

    @ApiModelProperty(value = "短链到期时间，例如2022-3-28 12:00:00，不传即为永久有效", position = 6)
    private Date expireIn;

    @ApiModelProperty(value = "访问次数", position = 7)
    private Integer viewCount;

    @ApiModelProperty(value = "访问次数", position = 8)
    private String domain = "https://s.gyuncai.cn";

}
